package com.psp.bu.controller.springmvc.req;


import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 商品保存
 **/
public class SaveProductParam {
	private String bid; // 商品id
	@NotEmpty(message = "商品分类不能为空")
	private String typeCode; // 商品分类code
	@Pattern(regexp = "^1|2$", message = "服务类型不正确，1服务，2实物")
	private String type; // 服务类型：1服务，2实物
	@NotEmpty(message = "商品名称不能为空能")
	private String title; // 商品名称
	private String subTitle; // 商品介绍
	private String img; // 商品配图
	@Pattern(regexp = "^1|2$", message = "类型不正确，1一口价，2沟通报价")
	private String quoteType; // 报价方式：1一口价，2沟通报价
	private Double price; // 价格
	private String serviceContent; // 商品内容
	private String serviceSafe; // 商品保障
	private String linkMan; // 联系人
	private String telephone; // 联系电话
	private String attributeArr; // 商品属性
	private String attributeValueArr; // 商品属性值
	private String attributeJson; // 商品属性包含数量，价格
	@Pattern(regexp = "^0|1$", message = "类型不正确，1有0无")
	private String hasInvoice; // 是否有发票:1有0无

	public void setBid(String bid) {
 		this.bid = bid;
	}

	public String getBid() {
 		return bid;
	}

	public void setTypeCode(String typeCode) {
 		this.typeCode = typeCode;
	}

	public String getTypeCode() {
 		return typeCode;
	}

	public void setType(String type) {
 		this.type = type;
	}

	public String getType() {
 		return type;
	}

	public void setTitle(String title) {
 		this.title = title;
	}

	public String getTitle() {
 		return title;
	}

	public void setSubTitle(String subTitle) {
 		this.subTitle = subTitle;
	}

	public String getSubTitle() {
 		return subTitle;
	}

	public void setImg(String img) {
 		this.img = img;
	}

	public String getImg() {
 		return img;
	}

	public void setQuoteType(String quoteType) {
 		this.quoteType = quoteType;
	}

	public String getQuoteType() {
 		return quoteType;
	}

	public void setPrice(Double price) {
 		this.price = price;
	}

	public Double getPrice() {
 		return price;
	}

	public void setServiceContent(String serviceContent) {
 		this.serviceContent = serviceContent;
	}

	public String getServiceContent() {
 		return serviceContent;
	}

	public void setServiceSafe(String serviceSafe) {
 		this.serviceSafe = serviceSafe;
	}

	public String getServiceSafe() {
 		return serviceSafe;
	}

	public void setLinkMan(String linkMan) {
 		this.linkMan = linkMan;
	}

	public String getLinkMan() {
 		return linkMan;
	}

	public void setTelephone(String telephone) {
 		this.telephone = telephone;
	}

	public String getTelephone() {
 		return telephone;
	}

	public void setAttributeArr(String attributeArr) {
 		this.attributeArr = attributeArr;
	}

	public String getAttributeArr() {
 		return attributeArr;
	}

	public void setAttributeValueArr(String attributeValueArr) {
 		this.attributeValueArr = attributeValueArr;
	}

	public String getAttributeValueArr() {
 		return attributeValueArr;
	}

	public void setAttributeJson(String attributeJson) {
 		this.attributeJson = attributeJson;
	}

	public String getAttributeJson() {
 		return attributeJson;
	}

	public void setHasInvoice(String hasInvoice) {
 		this.hasInvoice = hasInvoice;
	}

	public String getHasInvoice() {
 		return hasInvoice;
	}

}
